Learn R Programming

brainGraph (version 3.1.0)

Count Edges: Count number of edges of a brain graph

Description

count_homologous counts the number of edges between homologous regions in a brain graph (e.g. between L and R superior frontal).

count_inter counts the number of edges between and within all vertices in one group (e.g. lobe, hemi, network, etc.).

Usage

count_homologous(g)

count_inter(g, group = c("lobe", "hemi", "network", "class", "gyrus", "Yeo_7network", "Yeo_17network", "area", "Brodmann"))

Value

count_homologous - a named vector of the edge ID's connecting homologous regions

count_inter - a data.table of total, intra-, and inter-group edge counts

Arguments

g

A brainGraph graph object

group

Character string specifying which grouping to calculate edge counts for. Default: 'lobe'

Author

Christopher G. Watson, cgwatson@bu.edu

Examples

Run this code
if (FALSE) {
g1.lobecounts <- count_inter(g[[1]][[N]], 'lobe')
}

Run the code above in your browser using DataLab